//
//  User.swift
//  DSWeibo
//
//  Created by liuzhu on 2018/11/24.
//  Copyright © 2018 liuzhu. All rights reserved.
//

import UIKit

class User: NSObject {

    var id: Int = 0
    
    var name: String?
    
    var profile_image_url: String?
    
    var verified: Bool = false
    
    var verified_type: Int = -1
    
    //字典转模型
    init(dict:[String:AnyObject]){
        super.init()
        //setValuesForKeys(dict)
        name = dict["name"] as! String
        id = Int(dict["id"] as! NSNumber)
        profile_image_url = dict["profile_image_url"] as! String
        verified_type = Int(dict["verified_type"] as! NSNumber)
        verified = dict["verified"] as! Bool
    }
}
